<?php
error_reporting("E_ALL");ini_set("display_errors", 1);
header("content-Type: text/html; charset=utf-8");
include('function.php');
$domainlist=include('domain.php');
$new=[];
foreach($domainlist as $v){    
    $res = check_status($v);
    if($res['code']==200){
        $new[]=$v;
    }
}
if($new)arr2file($new);
echo date("Y-m-d H:i:s").'检测可用'.count($new);

?>